package com.sike.mapper;

import com.sike.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author vito
 * @version 1.0
 */
@Mapper
public interface OrderMapper {
    // 创建订单
    void createOrder(Order order);
    // 取消订单
    void cancelOrder(@Param("orderId") Integer orderId);

    // 查询所有订单
    List<Order> findAllOrders();

    // 根据订单id查询订单
    Order findById(@Param("orderId") Integer orderId);
}
